package com.dss.sdk.utils.json;

import com.dss.sdk.response.DssResponse;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/**
 * @author Fadada
 */
public class ParameterizedTypeBaseRes implements ParameterizedType {
    Class clazz;

    public ParameterizedTypeBaseRes(Class clz) {
        clazz = clz;
    }

    @Override
    public Type[] getActualTypeArguments() {
        return new Type[]{clazz};
    }

    @Override
    public Type getRawType() {
        return DssResponse.class;
    }

    @Override
    public Type getOwnerType() {
        return null;
    }
}
